package com.qianxunclub.chapter8.controller;


import com.qianxunclub.chapter8.annotation.GetData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import lombok.AllArgsConstructor;

/**
 * @author zhangbin
 * @date 2019-06-08 19:31
 * @description: TODO
 */
@RestController
@AllArgsConstructor
@RequestMapping(value = "/api", produces = "application/json")
public class IndexController {

    @ResponseBody
    @GetMapping("")
    @GetData
    public Object user(String p) {
        return "RESULT";
    }

}
